package org.jackysoft.file;

public enum FileType {
    RECEIVED{
    	public String toString(){
    		return "received";
    	}
    },
    SENT{
    	public String toString(){
    		return "sent";
    	}
    },
    UPLOADED{
    	public String toString(){
    		return "uploaded";
    	}
    },
    HISTORY{
    	public String toString(){
    		return "history";
    	}
    }
    ,UNKNOW;
    
    public static FileType getFileType(String f) {
	    return FileType.valueOf(f.toUpperCase());

	}
   
}
